package com.wonders.hisdoctor.station.project.base.domain;

import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>给药途径字典</p>
 * <p>db_table: ADMINISTRATION_DICT</p>
 * @author tong-aj
 * @date 2021/02/22
 */
@ApiModel("给药途径字典")
@Accessors(chain = true)
@Data
@ToString
@TableName("ADMINISTRATION_DICT")
public class AdministrationDict implements Serializable {

    private static final long serialVersionUID = 2658519919961862360L;

    /** db_field: SERIAL_NO; desc: 序号 */
    @ApiModelProperty("序号")
    @TableField("SERIAL_NO")
    private Integer serialNo;

    /** db_field: ADMINISTRATION_CODE; desc: 给药途径代码 */
    @ApiModelProperty("给药途径代码")
    @TableField("ADMINISTRATION_CODE")
    private String administrationCode;

    /** `主键` db_field: ADMINISTRATION_NAME; desc: 给药途径名称 */
    @ApiModelProperty("给药途径名称")
    @TableId
    @NotNull(message = "给药途径名称不能为空", groups = PrimaryGroup.class)
    @TableField("ADMINISTRATION_NAME")
    private String administrationName;

    /** db_field: INPUT_CODE; desc: 输入码 */
    @ApiModelProperty("输入码")
    @TableField("INPUT_CODE")
    private String inputCode;

}